home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Sep 90 / MacApp.Tech$ 9⁄14⁄90 / 1965-Sketching Polygons-Sep90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.2 KB  |  32 lines  |  [TEXT/GEOL]

  1. Item    4970437                         12-Sept-90        06:26PDT
  2.  
  3. From:   SW0075                          SWD VTS AB, Goteborg,IDV
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Sketching Polygons
  8.  
  9. Hi all
  10.  
  11. I have implemented sketching of polygons according to Kurt Schmucker's
  12. recommendations (in FrameWorks, vol 4, #2, May 1990) by overriding the
  13. DoSetCursor method to provide a rubberbanded feedback.
  14.  
  15. My first problem is that the rubber band sometimes "freeze" for one or two
  16. seconds in polygon sketcher mode, specially when the mouse is moved quickly. I
  17. guess it might have something to do with MacApp's idle mechanism. When I set
  18. gApplication.fTicksTilNextIdle:=NIL in my DoSetCursor method the feedback gets
  19. somewhat better, but there are still undesirable interrupts.
  20.  
  21. My second problem is more a design issue. The approach of polygon sketching
  22. with DoSetCursor doesn't seem to be suitable when the cursor is moved outside
  23. the view. The rubber band is then "freezed" with one end at the edge of the
  24. view (just at the exit point of the curser) since DoSetCursor is not called
  25. while the cursor is outside the view's frame.
  26.  
  27. I would be grateful for any suggestions on how to overcome these problems.
  28.  
  29. Bo Ridderstolpe
  30. VTS systems AB
  31.  
  32.